package org.tis.tools.abf.module.ac.controller.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.tis.tools.abf.module.common.entity.enums.YON;
import org.tis.tools.model.web.RestRequest;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;


/**
 * Created by chenchao
 * Created on 2018/5/3 9:58
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(description = "提供给应用参数的新增和修改的实体类")
public class AcAppConfigAddRequest extends RestRequest {

        @ApiModelProperty(name = "guid",value = "数据主键")
        private String guid;

        @ApiParam(name = "guidApp",value = "应用GUID",required = true)
        @NotBlank(message = "应用GUID不能为空")
        private String guidApp;

        @ApiParam(name = "configType",value = "配置类型",required = true)
        @NotBlank(message = "配置类型不能为空")
        private String configType;

        @ApiParam(name = "configName",value = "配置名",required = true)
        @NotBlank(message = "配置名不能为空")
        private String configName;

        @ApiParam(name = "configDict",value = "配置值字典",required = true)
        @NotBlank(message = "配置值字典不能为空")
        private String configDict;

        @ApiParam(name = "configStyle",value = "配置风格")
        private String configStyle;

        @ApiParam(name = "configValue",value = "默认配置值",required = true)
        @NotBlank(message = "默认配置值不能为空")
        private String configValue;

        @ApiParam(name = "enabled",value = "是否启用")
        private YON enabled;

        @ApiParam(name = "displayOrder",value = "显示顺序")
        private BigDecimal displayOrder;

        @ApiParam(name = "configDesc",value = "配置描述说明")
        private String configDesc;

}
